package com.example.customException;

/**
 * TODO: 这里要写注释的!
 */
public class BussinessException extends RuntimeException {
    private int code;
    private String message;

    public BussinessException(String msg){
        super();
        this.message= msg;
    }

    public BussinessException(int code,String msg){
        super();
        this.code= code;
        this.message= msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    @Override public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
